/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.system.datatemplate;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 数据模板 Model
*
* @author liangtian
* @date 2021-09-15 14:15:08
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class DataTemplateModel extends ApiWrapper {

    /** 父级主键id */
    @ApiModelProperty(value = "父级主键id")
    @ExcelProperty(value = "父级主键id", order = 1)
    @ExcelInfo
    @ValidatorLenMax(19)
    private String parentId;

    /** 项目序号 */
    @ApiModelProperty(value = "项目序号")
    @ExcelProperty(value = "项目序号", order = 2)
    @ExcelInfo
    @ValidatorLenMax(5)
    private String sno;

    /** 项目名称 */
    @ApiModelProperty(value = "项目名称")
    @ExcelProperty(value = "项目名称", order = 3)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String sname;

    /** 项目层级 (0为顶级) */
    @ApiModelProperty(value = "项目层级 (0为顶级)")
    @ExcelProperty(value = "项目层级 (0为顶级)", order = 4)
    @ExcelInfo
    @ValidatorLenMax(5)
    private String sortNo;

    /** 项目值类型 */
    @ApiModelProperty(value = "项目值类型")
    @ExcelProperty(value = "项目值类型", order = 5)
    @ExcelInfo
    @ValidatorLenMax(20)
    private String stype;

    /** 隐患类别 */
    @ApiModelProperty(value = "隐患类别")
    @ExcelProperty(value = "隐患类别", order = 6)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String dangerType;

    /** 隐患点 */
    @ApiModelProperty(value = "隐患点")
    @ExcelProperty(value = "隐患点", order = 7)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String dangerPoint;

    /** 所属公司 */
    @ApiModelProperty(value = "所属公司")
    @ExcelProperty(value = "所属公司", order = 8)
    @ExcelInfo
    @ValidatorLenMax(50)
    private String company;

    /** 模板名称 */
    @ApiModelProperty(value = "模板名称")
    @ExcelProperty(value = "模板名称", order = 9)
    @ExcelInfo
    @ValidatorLenMax(100)
    private String templateName;

    /** 模板描述 */
    @ApiModelProperty(value = "模板描述")
    @ExcelProperty(value = "模板描述", order = 10)
    @ExcelInfo
    @ValidatorLenMax(100)
    private String templateComponent;

    /** 时间戳 */
    @ApiModelProperty(value = "时间戳")
    @ExcelProperty(value = "时间戳", order = 16)
    @ExcelInfo
    private String ts;



}